package com.fuxi.cloud.desreport.dao;

import com.fuxi.cloud.desreport.entity.JmReportMap;
import org.jeecgframework.minidao.annotation.Param;
import org.jeecgframework.minidao.annotation.ResultType;
import org.jeecgframework.minidao.annotation.Sql;
import org.jeecgframework.minidao.pojo.MiniDaoPage;
import org.springframework.stereotype.Repository;

/**
 * JimuReportMapDao
 *
 * @Author: 扫地僧
 * @CreateTime: 2021-05-03
 */
@Repository
public interface JimuReportMapDao {
    @Sql("SELECT * FROM jimu_report_map WHERE ID = :id")
    JmReportMap get(@Param("id") String var1);

    int update(@Param("jimuReportMap") JmReportMap var1);

    void insert(@Param("jimuReportMap") JmReportMap var1);

    @ResultType(JmReportMap.class)
    MiniDaoPage<JmReportMap> getAll(@Param("jimuReportMap") JmReportMap var1, @Param("page") int var2, @Param("rows") int var3);

    @Sql("DELETE from jimu_report_map WHERE ID = :id")
    void deleteById(@Param("id") String var1);

    @Sql("SELECT count(*) FROM jimu_report_map")
    Integer getCount();

    @ResultType(JmReportMap.class)
    JmReportMap queryMapByCode(@Param("mapSource") JmReportMap var1);
}

